<style type="text/css"> 
table 
{ 
border-collapse: collapse; 
border: none; 
width: 200px; 
} 
td 
{ 
border: solid #000 1px; 
} 
</style> 
<table><tr><td>id</td><td>cdir</td><td>des</td></tr>
<?php
include 'conn.php';
$sql = "SELECT * FROM BGP_cdir;"; //SQL查询语句
$result=$conn->query($sql);
while ($row = mysqli_fetch_assoc($result))
{
	echo "<tr><td>{$row['id']}</td>";
	echo "<td>{$row['cdir']}</td>";
		echo "<td>{$row['des']}</td>";
}
$conn->close();
?>
</table>